import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

//创建一个app常量
const app = createApp(App);

//当前的axios模块引用的是自定义拦截器模块
import axios from './utils/interceptor/';
import VueAxios from 'vue-axios';
import qs from 'qs';
import ElementPlus from 'element-plus';
import locale from 'element-plus/lib/locale/lang/zh-cn';//中文
import 'element-plus/dist/index.css';

app.config.globalProperties.$ServerUrl = axios.defaults.baseURL= 'http://127.0.0.1:8093';
//向原型添加qs插件【使用方式：this.$qs.函数名】
app.config.globalProperties.$qs = qs;
app.use(store).use(router).use(VueAxios,axios).use(ElementPlus,{locale}).mount("#app");
